const PosterBookModel = require('../db/models/posterBook');

class PosterBookService {
    //查询海报广告图
    async getPosterBookData () {
        return await PosterBookModel.findAll({
            where: { status: 1 },
            attributes: {
                exclude: ['id', 'cid', 'imgUrl', 'status', 'createdAt', 'updatedAt']
            }
        });
    };
}

module.exports = new PosterBookService();